package rn;

import problema.Solucao;
import pso.base.Particula;
import util.MersenneTwister;

public class TesteRn {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		TrainningProblem problem = new TrainningProblem();

		double[] posicao = new double[problem.getNumeroDimensoes()];
		double[] velocidade = new double[problem.getNumeroDimensoes()];
		for(int i=0; i<posicao.length; i++){
			posicao[i] = new MersenneTwister().nextDouble();
		}
		
		Solucao solucao = new Particula(posicao, velocidade);

		problem.avaliacaoFitness(solucao);
		
		System.out.println("Ok!");
	}

}
